package com.atguigu.pojo;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class User {
    @NotNull
    private String name;
    @Min(value=18, message="年龄不能小于18")
    private Integer age;
}
